package com.jack.userservice.openfeign;

/*
    @FeignClient("stores")
    public interface StoreClient {
    @RequestMapping(method = RequestMethod.GET, value = "/stores")
    List<Store> getStores();
 */
// 该接口就是用来调用order-service服务的

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "order-service",fallback = OrderServiceFallback.class)  // 注册中心上对应的微服务名称
public interface OrderServiceFeignClient {
    @RequestMapping("/order/query")
    public String query(@RequestParam String param);
}

// OrderServiceFeignClient orderServiceFeignClient=Proxy.newInstance();
